﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;

namespace BUS
{
   public class SearchCountBUS
    {
       SearchCountDAO db = new SearchCountDAO();
        public List<SearchCount> GetListAll()
        {
            return db.GetListAll();
        }
        public List<SearchCount> GetListAll_Sort()
        {
            return db.GetListAll_Sort();
        }
        public List<SearchCount> GetListTop10()
        {
            return db.GetListTop10();
        }
        public List<SearchCount> GetListCountTop10()
        {
            return db.GetListCountTop10();
        }
        public SearchCount GetById(int id)
        {
            return db.GetById(id);
        }
        public SearchCount GetByKeys(string id)
        {
            return db.GetByKeys(id);
        }

        public bool Insert(SearchCount c)
        {
            return db.Insert(c);
        }

        public bool Edit(SearchCount ca)
        {
            return db.Edit(ca);
        }

        public bool Edit_Count(string keys)
        {
            return db.Edit_Count(keys);
        }

        public bool Delete(int id)
        {
            return db.Delete(id);
        }
    }
}
